[Previous] [Next] [Index] [Thread]

Re: IIS - .CMD/.BAT Patch Provides Security Enhancements to II



Peter Trei wrote:

| desired CGI script. This is an old hole, one exploited many times in the
| past in other contexts - developers of firewall software have long been
| aware of it. In general, a program should regard any requests it
| receives from untrusted users with extreme paranoia, and check to
| ensure they contain nothing which is unexpected.

	Actually, programs should check that their input only contains
that which is expected and safe.

	The difference is that your list of unsafe characters is
likely to be incomplete, and allow through a character you don't
handle correctly.  If you accept only a-z, A-Z, 0-9, and other
characters as is appropriate for a field, you are much less likely to
run into trouble.  If you don't accept %&;$|<>!/\. then you might
encounter difficulty when someone sends you backtics.



Adam

-- 
"It is seldom that liberty of any kind is lost all at once."
					               -Hume


References: